#include <iostream>

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main()
{
    string s1, s2;
    cin >> s1 >> s2;
    auto s1_size = s1.size();
    auto s2_size = s2.size();
    cout << (s1_size == s2_size? "equals" : (s1_size > s2_size? s1 : s2)) << endl;
}